Optimal. Leaf size=38 \[ \frac{2 \sqrt{a} \sin ^{-1}\left (\frac{\sqrt{a} \cos (e+f x)}{\sqrt{a-a \sin (e+f x)}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0701887, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.071, Rules used = {2774, 216} \[ \frac{2 \sqrt{a} \sin ^{-1}\left (\frac{\sqrt{a} \cos (e+f x)}{\sqrt{a-a \sin (e+f x)}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2774
Rule 216
Rubi steps
\begin{align*} \int \frac{\sqrt{a-a \sin (e+f x)}}{\sqrt{-\sin (e+f x)}} \, dx &=-\frac{2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-\frac{x^2}{a}}} \, dx,x,-\frac{a \cos (e+f x)}{\sqrt{a-a \sin (e+f x)}}\right )}{f}\\ &=\frac{2 \sqrt{a} \sin ^{-1}\left (\frac{\sqrt{a} \cos (e+f x)}{\sqrt{a-a \sin (e+f x)}}\right )}{f}\\ \end{align*}
Mathematica [C] time = 0.468421, size = 119, normalized size = 3.13 \[ -\frac{\sqrt{-1+e^{2 i (e+f x)}} \sqrt{a-a \sin (e+f x)} \left (\tan ^{-1}\left (\sqrt{-1+e^{2 i (e+f x)}}\right )+i \tanh ^{-1}\left (\frac{e^{i (e+f x)}}{\sqrt{-1+e^{2 i (e+f x)}}}\right )\right )}{f \left (e^{i (e+f x)}-i\right ) \sqrt{-\sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.112, size = 271, normalized size = 7.1 \begin{align*}{\frac{\sqrt{2}\sin \left ( fx+e \right ) }{2\,f \left ( -1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) \right ) }\sqrt{-{\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }}}\sqrt{-a \left ( -1+\sin \left ( fx+e \right ) \right ) } \left ( \ln \left ( -{ \left ( \sqrt{2}\sqrt{-{\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }}}\sin \left ( fx+e \right ) +\sin \left ( fx+e \right ) -\cos \left ( fx+e \right ) +1 \right ) \left ( \sqrt{2}\sqrt{-{\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }}}\sin \left ( fx+e \right ) -\sin \left ( fx+e \right ) +\cos \left ( fx+e \right ) -1 \right ) ^{-1}} \right ) -\ln \left ( -{ \left ( \sqrt{2}\sqrt{-{\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }}}\sin \left ( fx+e \right ) -\sin \left ( fx+e \right ) +\cos \left ( fx+e \right ) -1 \right ) \left ( \sqrt{2}\sqrt{-{\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }}}\sin \left ( fx+e \right ) +\sin \left ( fx+e \right ) -\cos \left ( fx+e \right ) +1 \right ) ^{-1}} \right ) \right ){\frac{1}{\sqrt{-\sin \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{-a \sin \left (f x + e\right ) + a}}{\sqrt{-\sin \left (f x + e\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.63137, size = 941, normalized size = 24.76 \begin{align*} \left [\frac{\sqrt{-a} \log \left (\frac{128 \, a \cos \left (f x + e\right )^{5} - 128 \, a \cos \left (f x + e\right )^{4} - 416 \, a \cos \left (f x + e\right )^{3} + 128 \, a \cos \left (f x + e\right )^{2} + 8 \,{\left (16 \, \cos \left (f x + e\right )^{4} - 24 \, \cos \left (f x + e\right )^{3} - 66 \, \cos \left (f x + e\right )^{2} -{\left (16 \, \cos \left (f x + e\right )^{3} + 40 \, \cos \left (f x + e\right )^{2} - 26 \, \cos \left (f x + e\right ) - 51\right )} \sin \left (f x + e\right ) + 25 \, \cos \left (f x + e\right ) + 51\right )} \sqrt{-a \sin \left (f x + e\right ) + a} \sqrt{-a} \sqrt{-\sin \left (f x + e\right )} + 289 \, a \cos \left (f x + e\right ) -{\left (128 \, a \cos \left (f x + e\right )^{4} + 256 \, a \cos \left (f x + e\right )^{3} - 160 \, a \cos \left (f x + e\right )^{2} - 288 \, a \cos \left (f x + e\right ) + a\right )} \sin \left (f x + e\right ) + a}{\cos \left (f x + e\right ) - \sin \left (f x + e\right ) + 1}\right )}{4 \, f}, -\frac{\sqrt{a} \arctan \left (\frac{{\left (8 \, \cos \left (f x + e\right )^{2} - 8 \, \sin \left (f x + e\right ) - 9\right )} \sqrt{-a \sin \left (f x + e\right ) + a} \sqrt{a} \sqrt{-\sin \left (f x + e\right )}}{4 \,{\left (2 \, a \cos \left (f x + e\right )^{3} - a \cos \left (f x + e\right ) \sin \left (f x + e\right ) - 2 \, a \cos \left (f x + e\right )\right )}}\right )}{2 \, f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{- a \left (\sin{\left (e + f x \right )} - 1\right )}}{\sqrt{- \sin{\left (e + f x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{-a \sin \left (f x + e\right ) + a}}{\sqrt{-\sin \left (f x + e\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]